package com.muyu.system.domain;

import java.math.BigDecimal;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品规格对象 danmo_shopping_specification
 *
 * @author kunzong
 * @date 2024-12-02
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoShoppingSpecification extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 规格唯一id
     */
    private Long id;

    /**
     * 规格名称
     */
    @Excel(name = "规格名称")
    private String name;

    /**
     * 关联商品id
     */
    @Excel(name = "关联商品id")
    private Long shoppingId;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格 ")
    private BigDecimal price;

    /**
     * 库存量
     */
    @Excel(name = "库存量")
    private Long stock;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String picture;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Long sales;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("shoppingId", getShoppingId())
                .append("price", getPrice())
                .append("stock", getStock())
                .append("picture", getPicture())
                .append("sales", getSales())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
